Optimal. Leaf size=175 \[ \frac {64 a^3 (15 A+13 B) \sin (c+d x)}{315 d \sqrt {a+a \cos (c+d x)}}+\frac {16 a^2 (15 A+13 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{315 d}+\frac {2 a (15 A+13 B) (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{105 d}+\frac {2 (9 A-2 B) (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{63 d}+\frac {2 B (a+a \cos (c+d x))^{7/2} \sin (c+d x)}{9 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 175, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {3047, 3102,
2830, 2726, 2725} \begin {gather*} \frac {64 a^3 (15 A+13 B) \sin (c+d x)}{315 d \sqrt {a \cos (c+d x)+a}}+\frac {16 a^2 (15 A+13 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{315 d}+\frac {2 (9 A-2 B) \sin (c+d x) (a \cos (c+d x)+a)^{5/2}}{63 d}+\frac {2 a (15 A+13 B) \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{105 d}+\frac {2 B \sin (c+d x) (a \cos (c+d x)+a)^{7/2}}{9 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2726
Rule 2830
Rule 3047
Rule 3102
Rubi steps
\begin {align*} \int \cos (c+d x) (a+a \cos (c+d x))^{5/2} (A+B \cos (c+d x)) \, dx &=\int (a+a \cos (c+d x))^{5/2} \left (A \cos (c+d x)+B \cos ^2(c+d x)\right ) \, dx\\ &=\frac {2 B (a+a \cos (c+d x))^{7/2} \sin (c+d x)}{9 a d}+\frac {2 \int (a+a \cos (c+d x))^{5/2} \left (\frac {7 a B}{2}+\frac {1}{2} a (9 A-2 B) \cos (c+d x)\right ) \, dx}{9 a}\\ &=\frac {2 (9 A-2 B) (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{63 d}+\frac {2 B (a+a \cos (c+d x))^{7/2} \sin (c+d x)}{9 a d}+\frac {1}{21} (15 A+13 B) \int (a+a \cos (c+d x))^{5/2} \, dx\\ &=\frac {2 a (15 A+13 B) (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{105 d}+\frac {2 (9 A-2 B) (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{63 d}+\frac {2 B (a+a \cos (c+d x))^{7/2} \sin (c+d x)}{9 a d}+\frac {1}{105} (8 a (15 A+13 B)) \int (a+a \cos (c+d x))^{3/2} \, dx\\ &=\frac {16 a^2 (15 A+13 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{315 d}+\frac {2 a (15 A+13 B) (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{105 d}+\frac {2 (9 A-2 B) (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{63 d}+\frac {2 B (a+a \cos (c+d x))^{7/2} \sin (c+d x)}{9 a d}+\frac {1}{315} \left (32 a^2 (15 A+13 B)\right ) \int \sqrt {a+a \cos (c+d x)} \, dx\\ &=\frac {64 a^3 (15 A+13 B) \sin (c+d x)}{315 d \sqrt {a+a \cos (c+d x)}}+\frac {16 a^2 (15 A+13 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{315 d}+\frac {2 a (15 A+13 B) (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{105 d}+\frac {2 (9 A-2 B) (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{63 d}+\frac {2 B (a+a \cos (c+d x))^{7/2} \sin (c+d x)}{9 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.75, size = 105, normalized size = 0.60 \begin {gather*} \frac {a^2 \sqrt {a (1+\cos (c+d x))} (6240 A+5653 B+(3030 A+3116 B) \cos (c+d x)+8 (90 A+127 B) \cos (2 (c+d x))+90 A \cos (3 (c+d x))+260 B \cos (3 (c+d x))+35 B \cos (4 (c+d x))) \tan \left (\frac {1}{2} (c+d x)\right )}{1260 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 123, normalized size = 0.70
method | result | size |
default | \(\frac {8 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a^{3} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (140 B \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-90 A -540 B \right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (315 A +819 B \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-420 A -630 B \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+315 A +315 B \right ) \sqrt {2}}{315 \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(123\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.58, size = 172, normalized size = 0.98 \begin {gather*} \frac {30 \, {\left (3 \, \sqrt {2} a^{2} \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 21 \, \sqrt {2} a^{2} \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 77 \, \sqrt {2} a^{2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 315 \, \sqrt {2} a^{2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} A \sqrt {a} + {\left (35 \, \sqrt {2} a^{2} \sin \left (\frac {9}{2} \, d x + \frac {9}{2} \, c\right ) + 225 \, \sqrt {2} a^{2} \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 756 \, \sqrt {2} a^{2} \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 2100 \, \sqrt {2} a^{2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 8190 \, \sqrt {2} a^{2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} B \sqrt {a}}{2520 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 116, normalized size = 0.66 \begin {gather*} \frac {2 \, {\left (35 \, B a^{2} \cos \left (d x + c\right )^{4} + 5 \, {\left (9 \, A + 26 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + 3 \, {\left (60 \, A + 73 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + {\left (345 \, A + 292 \, B\right )} a^{2} \cos \left (d x + c\right ) + 2 \, {\left (345 \, A + 292 \, B\right )} a^{2}\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{315 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.17, size = 213, normalized size = 1.22 \begin {gather*} \frac {\sqrt {2} {\left (35 \, B a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {9}{2} \, d x + \frac {9}{2} \, c\right ) + 45 \, {\left (2 \, A a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + 5 \, B a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )\right )} \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 126 \, {\left (5 \, A a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + 6 \, B a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )\right )} \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 210 \, {\left (11 \, A a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + 10 \, B a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )\right )} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 630 \, {\left (15 \, A a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + 13 \, B a^{2} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )\right )} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{2520 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \cos \left (c+d\,x\right )\,\left (A+B\,\cos \left (c+d\,x\right )\right )\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________